﻿using HttpClientWeappers;
using Newtonsoft.Json;
using System.Runtime;
namespace T.Contract.Read.API.Server
{
    public class httpPosst
    {
        public async Task<dynamic> createpost()
        {
            string token = "";
            HttpClientWrapper cilent = new HttpClientWrapper(token);
            string url = "http://47.96.109.219:5249/api/User/offCreate";
            var requestBody = new
            {
                offic_name = "上海空易网络科技有限公司",
                login_name = "16631057525",
                password = "qwe123456",
                no = "10010011",
                name = "任奥博",
                email = "2579183529@qq.com",
                phone = "16631057525",
                user_type = 8,
                sex = 1,
                mgr_type = 0,
                avatar = "/",
                end_date = "2024-12-16T03:44:22.565Z",
                useable = 0
            };
            var jsontCount = JsonConvert.SerializeObject(requestBody);
            string postRepoonse=await cilent.PostAsync(url, jsontCount);
            return postRepoonse;



        }

        }
    }

